package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.UserFriendRequestCreateValidate;
import com.mdd.admin.validate.UserFriendRequestUpdateValidate;
import com.mdd.admin.validate.UserFriendRequestSearchValidate;
import com.mdd.admin.vo.UserFriendRequestListedVo;
import com.mdd.admin.vo.UserFriendRequestDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 好友请求服务接口类
 * @author LikeAdmin
 */
public interface IUserFriendRequestService {

    /**
     * 好友请求列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<UserFriendRequestListedVo>
     */
    PageResult<UserFriendRequestListedVo> list(PageValidate pageValidate, UserFriendRequestSearchValidate searchValidate);

    /**
     * 好友请求详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return UserFriendRequestDetailVo
     */
    UserFriendRequestDetailVo detail(Integer id);

    /**
     * 好友请求新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(UserFriendRequestCreateValidate createValidate);

    /**
     * 好友请求编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(UserFriendRequestUpdateValidate updateValidate);

    /**
     * 好友请求删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
